package club.kingyin.commons.response;

/**
 * 统一响应
 */
public enum ResultCode {
    /** 成功 */
    SUCCESS("20000", "成功"),

    /** 操做失败 */
    ERROR("500", "操做失败"),

    INFO_NOTIFY("6000","信息提示"),
    WARING_NOTIFY("5000","警告提示"),
    FAILURE_NOTIFY("4000","失败提示"),

    INFO_REPORT("6001","信息通知"),
    WARING_REPORT("5001","警告通知"),
    FAILURE_REPORT("4001","失败通知");

    ResultCode(String value, String msg){
        this.val = value;
        this.msg = msg;
    }

    public String val() {
        return val;
    }

    public String msg() {
        return msg;
    }

    private String val;
    private String msg;
}
